• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

Two pointers

[Python] 백준 1806 - 부분합 문제 풀이

BOJ 1806번 부분합 Python 문제 풀이 분류: Two Pointers (투 포인터) 투포인터를 이용하여 조건을 만족하는 부분 수열 길이의 최솟값을 구한다....

Two pointersTwo pointers

Baekjoon 2003 Sum of numbers in Go

Scan function didn't wait when I put Enter(\n) So I checked and modified like below. Enter should be included with Scanf Second I added Go routine and changed recursive, but still have problem with the processing time. P...

sun of numbersalgorithm2003baekjoongoTwo pointers2003

[Leetcode] 986. Interval List Intersections

21.11.24 solved in 60 min. Problem You are given two lists of closed intervals, firstList and secondList, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each list of intervals is pairwise disjoin...

leetcodearrayTwo pointersTwo pointers

[Leetcode] 283. Move Zeros

21.11.22 Solved at re-trial Problem Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of t...

leetcodeTwo pointersTwo pointers

211007_자료구조&알고리즘(3)

알고리즘 배열이나 리스트의 요소의 일정 범위 값을 비교할 때 사용하면 유용한 알고리즘 연속된 K 일 동안의 매출액의 합 중에서 최대값이 얼마인지 구하라 하지만 강사님 수업의 패턴에 맞추기로 했다 그래서 다시 연습으로 코드 작성! 강사님은 아예 k 만큼 배열 값을 sum에 넣어주고 시작 그리고 k 값을 기준으로 다시 for문 시작한다 연속된 K 일 동안의 매출액의 종류를 구간별로 구하고 그 매...

슬라이딩윈도우알고리즘Two pointersTwo pointers

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more